package com.sixth.system.service;/**
 * @author 633yh
 * @version 1.0
 */

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sixth.core.entity.Role;
import com.sixth.core.entity.RoleUserEntity;
import com.sixth.core.vo.R;
import com.sixth.system.vo.RoleVo;

import java.util.List;

/**
 * @author     ：Stu YH
 * @date       ：Created in 2024/8/16 14:36
 * @description：
 * @modified By：
 * @version:
 */
public interface RoleService {

   R<Page<Role>> selectByPage(RoleVo roleVo);

   R<List<Role>> selectAllRole();

    R<Role> getById(Long roleId);


    boolean add_update_role(Role role);

    R batchDelete_role(Long[] roleIds);

    R removeById(Long roleId);

    R<List<Long>> findRolesByUserId(Long userId);

    R saveRoleUser(Long currentUserId, Long[] roleIds);
}